package com.ls.controller.model.serviceChannel;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

/**
 * @ClassName UpDownServiceChannelModel
 * @Description 调整业务通道优先级model
 * @Author pengyu
 * @Date 2019/9/13 10:17
 * @Version 1.0
 **/
@Data
@ApiModel("调整业务通道优先级model")
public class UpDownServiceChannelModel {

    public static final int UP_SERVICE_CHANNEL = 1;
    public static final int DOWN_SERVICE_CHANNEL = 2;
    /**
     * 服务与渠道关联表主键id，自增
     */
    @ApiModelProperty(value = "主键Id")
    @NotNull(message = "主键Id不能为空")
    private Long serChalId;

    @ApiModelProperty(value = "1 上移 2 下移")
    @NotNull(message = "上下移动参数不能为空")
    @Min(value = 1,message = "最小1")
    @Max(value = 2,message = "最大2")
    private Integer upDown;

}
